﻿
namespace Inovout.Gis.Land
{
    public class TuBanLayerFactory : LayerFactory
    {
        public override ILayerInfo Create(ILayerInfo layerInfo)
        {
            switch (layerInfo.Name)
            {
                case "G31_H_PY":
                     return new TuBanPolygonLayer(layerInfo as IGeometryLayerInfo);
                case "G32_H_PL":
                   return new TuBanLineLayer(layerInfo as IGeometryLayerInfo);
                case "G33_H_PT":
                   return new TuBanPointLayer(layerInfo as IGeometryLayerInfo);
                case "基期现状":
                   return new TuBanGroupLayer(layerInfo as IGroupLayerInfo);
                default:
                    return null;

            }
        }
    }
}
